/// @description Insert description here
// You can write your code in this editor
if(!global.playerX && !global.playerY){
	instance_create_layer(x,y,"Player",objPlayer);
}else{
	instance_create_layer(global.playerX,global.playerY,"Player",objPlayer);
	global.playerY = 0;
	global.playerX = 0;
}
instance_destroy();